package com.george.entity;

import io.searchbox.annotations.JestId;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/6/12 8:22
 * @version 1.0
 * @since jdk1.8
 */
@Data
@Document(indexName = "userindex", type = "user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    public User() {
    }

    public User(Long id, String name, Integer age, String description, String createtm) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.description = description;
        this.createtm = createtm;
    }

    /** 编号 */
    @JestId
    private Long id;
    /** 姓名 */
    private String name;

    /** 年龄 */
    private Integer age;

    /** 描述 */
    private String description;

    /** 创建时间 */
    private String createtm;
}
